package net.daum.hibernate.sample;

import org.hibernate.classic.Session;

public class LoadTest {
	public static void main(String[] args) throws Exception {
		new Runner().run(new RunItem() {			
			public void run(Session session) throws Exception {
				Model model = (Model) session.load(Model.class, 1974);
//				Model model = (Model) session.get(Model.class, 1974);
				
				System.out.println(model.getClass());
				System.out.println("OK");
			}
		});
	}
}
